/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cip.esymons.eventos.be;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 *
 * @author Administrador
 */
@Entity
@Table(name = "eca_estimacion_participantes")
public class EstimacionParticipantes implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "epaCodigo")
    private Integer epaCodigo;
    @Column(name = "epaFechaInicio")
    @Temporal(TemporalType.DATE)
    private Date epafechaInicio;
    @Column(name = "epafechaFin")
    @Temporal(TemporalType.DATE)
    private Date epafechaFin;
    @Column(name = "epaCantidad")
    private Integer epaCantidad;
    @JoinColumn(name = "pre_codigo", referencedColumnName = "pre_codigo")
    @ManyToOne(fetch = FetchType.LAZY)
    private Preevento preCodigo;
    @JoinColumn(name = "tpe_codigo", referencedColumnName = "tpe_codigo")
    @ManyToOne(fetch = FetchType.LAZY)
    private TipoParticipanteEvento tpeCodigo;
    @Transient
    private TipoParticipanteEvento tip1, tip2, tip3, tip4, tip5, tip6;
    @Transient
    private Boolean m1, m2, m3, m4, m5, m6;
    @Transient
    private Integer cant1, cant2, cant3, cant4, cant5, cant6;
    @Transient
    RangoMatriculas rang;

    public EstimacionParticipantes() {
        cant1 = cant2 = cant3 = cant4 = cant5 = cant6 = 0;
        m1 = m2 = m3 = m4 = m5 = m6 = true;
    }

    public Integer getCant1() {
        return cant1;
    }

    public void setCant1(Integer cant1) {
        this.cant1 = cant1;
    }

    public Integer getCant2() {
        return cant2;
    }

    public void setCant2(Integer cant2) {
        this.cant2 = cant2;
    }

    public Integer getCant3() {
        return cant3;
    }

    public void setCant3(Integer cant3) {
        this.cant3 = cant3;
    }

    public Integer getCant4() {
        return cant4;
    }

    public void setCant4(Integer cant4) {
        this.cant4 = cant4;
    }

    public Integer getCant5() {
        return cant5;
    }

    public void setCant5(Integer cant5) {
        this.cant5 = cant5;
    }

    public Integer getCant6() {
        return cant6;
    }

    public void setCant6(Integer cant6) {
        this.cant6 = cant6;
    }

    public RangoMatriculas getRang() {
        return rang;
    }

    public void setRang(RangoMatriculas rang) {
        this.rang = rang;
    }

    public Boolean getM1() {
        return m1;
    }

    public void setM1(Boolean m1) {
        this.m1 = m1;
    }

    public Boolean getM2() {
        return m2;
    }

    public void setM2(Boolean m2) {
        this.m2 = m2;
    }

    public Boolean getM3() {
        return m3;
    }

    public void setM3(Boolean m3) {
        this.m3 = m3;
    }

    public Boolean getM4() {
        return m4;
    }

    public void setM4(Boolean m4) {
        this.m4 = m4;
    }

    public Boolean getM5() {
        return m5;
    }

    public void setM5(Boolean m5) {
        this.m5 = m5;
    }

    public Boolean getM6() {
        return m6;
    }

    public void setM6(Boolean m6) {
        this.m6 = m6;
    }

    public TipoParticipanteEvento getTip1() {
        return tip1;
    }

    public void setTip1(TipoParticipanteEvento tip1) {
        this.tip1 = tip1;
    }

    public TipoParticipanteEvento getTip2() {
        return tip2;
    }

    public void setTip2(TipoParticipanteEvento tip2) {
        this.tip2 = tip2;
    }

    public TipoParticipanteEvento getTip3() {
        return tip3;
    }

    public void setTip3(TipoParticipanteEvento tip3) {
        this.tip3 = tip3;
    }

    public TipoParticipanteEvento getTip4() {
        return tip4;
    }

    public void setTip4(TipoParticipanteEvento tip4) {
        this.tip4 = tip4;
    }

    public TipoParticipanteEvento getTip5() {
        return tip5;
    }

    public void setTip5(TipoParticipanteEvento tip5) {
        this.tip5 = tip5;
    }

    public TipoParticipanteEvento getTip6() {
        return tip6;
    }

    public void setTip6(TipoParticipanteEvento tip6) {
        this.tip6 = tip6;
    }

    public Integer getEpaCantidad() {
        return epaCantidad;
    }

    public void setEpaCantidad(Integer epaCantidad) {
        this.epaCantidad = epaCantidad;
    }

    public Integer getEpaCodigo() {
        return epaCodigo;
    }

    public void setEpaCodigo(Integer epaCodigo) {
        this.epaCodigo = epaCodigo;
    }

    public Date getEpafechaFin() {
        return epafechaFin;
    }

    public void setEpafechaFin(Date epafechaFin) {
        this.epafechaFin = epafechaFin;
    }

    public Date getEpafechaInicio() {
        return epafechaInicio;
    }

    public void setEpafechaInicio(Date epafechaInicio) {
        this.epafechaInicio = epafechaInicio;
    }

    public Preevento getPreCodigo() {
        return preCodigo;
    }

    public void setPreCodigo(Preevento preCodigo) {
        this.preCodigo = preCodigo;
    }

    public TipoParticipanteEvento getTpeCodigo() {
        return tpeCodigo;
    }

    public void setTpeCodigo(TipoParticipanteEvento tpeCodigo) {
        this.tpeCodigo = tpeCodigo;
    }
}
